home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMEntity.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  123 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMEntity.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMEntity_h__
  6. #define __gen_nsIDOMEntity_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMNode_h__
  10. #include "nsIDOMNode.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMEntity */
  19. #define NS_IDOMENTITY_IID_STR "a6cf9079-15b3-11d2-932e-00805f8add32"
  20.  
  21. #define NS_IDOMENTITY_IID \
  22.   {0xa6cf9079, 0x15b3, 0x11d2, \
  23.     { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  24.  
  25. class NS_NO_VTABLE nsIDOMEntity : public nsIDOMNode {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMENTITY_IID)
  29.  
  30.   /**
  31.  * The nsIDOMEntity interface represents an entity, either parsed 
  32.  * or unparsed, in an XML document.
  33.  *
  34.  * For more information on this interface please see 
  35.  * http://www.w3.org/TR/DOM-Level-2-Core/
  36.  *
  37.  * @status FROZEN
  38.  */
  39.   /* readonly attribute DOMString publicId; */
  40.   NS_IMETHOD GetPublicId(nsAString & aPublicId) = 0;
  41.  
  42.   /* readonly attribute DOMString systemId; */
  43.   NS_IMETHOD GetSystemId(nsAString & aSystemId) = 0;
  44.  
  45.   /* readonly attribute DOMString notationName; */
  46.   NS_IMETHOD GetNotationName(nsAString & aNotationName) = 0;
  47.  
  48. };
  49.  
  50. /* Use this macro when declaring classes that implement this interface. */
  51. #define NS_DECL_NSIDOMENTITY \
  52.   NS_IMETHOD GetPublicId(nsAString & aPublicId); \
  53.   NS_IMETHOD GetSystemId(nsAString & aSystemId); \
  54.   NS_IMETHOD GetNotationName(nsAString & aNotationName); 
  55.  
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  57. #define NS_FORWARD_NSIDOMENTITY(_to) \
  58.   NS_IMETHOD GetPublicId(nsAString & aPublicId) { return _to GetPublicId(aPublicId); } \
  59.   NS_IMETHOD GetSystemId(nsAString & aSystemId) { return _to GetSystemId(aSystemId); } \
  60.   NS_IMETHOD GetNotationName(nsAString & aNotationName) { return _to GetNotationName(aNotationName); } 
  61.  
  62. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  63. #define NS_FORWARD_SAFE_NSIDOMENTITY(_to) \
  64.   NS_IMETHOD GetPublicId(nsAString & aPublicId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPublicId(aPublicId); } \
  65.   NS_IMETHOD GetSystemId(nsAString & aSystemId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSystemId(aSystemId); } \
  66.   NS_IMETHOD GetNotationName(nsAString & aNotationName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotationName(aNotationName); } 
  67.  
  68. #if 0
  69. /* Use the code below as a template for the implementation class for this interface. */
  70.  
  71. /* Header file */
  72. class nsDOMEntity : public nsIDOMEntity
  73. {
  74. public:
  75.   NS_DECL_ISUPPORTS
  76.   NS_DECL_NSIDOMENTITY
  77.  
  78.   nsDOMEntity();
  79.  
  80. private:
  81.   ~nsDOMEntity();
  82.  
  83. protected:
  84.   /* additional members */
  85. };
  86.  
  87. /* Implementation file */
  88. NS_IMPL_ISUPPORTS1(nsDOMEntity, nsIDOMEntity)
  89.  
  90. nsDOMEntity::nsDOMEntity()
  91. {
  92.   /* member initializers and constructor code */
  93. }
  94.  
  95. nsDOMEntity::~nsDOMEntity()
  96. {
  97.   /* destructor code */
  98. }
  99.  
  100. /* readonly attribute DOMString publicId; */
  101. NS_IMETHODIMP nsDOMEntity::GetPublicId(nsAString & aPublicId)
  102. {
  103.     return NS_ERROR_NOT_IMPLEMENTED;
  104. }
  105.  
  106. /* readonly attribute DOMString systemId; */
  107. NS_IMETHODIMP nsDOMEntity::GetSystemId(nsAString & aSystemId)
  108. {
  109.     return NS_ERROR_NOT_IMPLEMENTED;
  110. }
  111.  
  112. /* readonly attribute DOMString notationName; */
  113. NS_IMETHODIMP nsDOMEntity::GetNotationName(nsAString & aNotationName)
  114. {
  115.     return NS_ERROR_NOT_IMPLEMENTED;
  116. }
  117.  
  118. /* End of implementation class template. */
  119. #endif
  120.  
  121.  
  122. #endif /* __gen_nsIDOMEntity_h__ */
  123.